package 适配器模式;

/**
 * @program: leetcode
 * @description: 适配器角色
 * @author: HuRan QQ1345122890
 * @create: 2021-11-07 12:49
 */
public class PrintBanner  extends Banner implements Print{


    public PrintBanner(String string) {
        super(string);
        System.out.println("B");
    }

    @Override
    public void printWeak() {
        showWithParen();
    }

    @Override
    public void printString() {
        showWithAster();
    }

    public static void main(String[] args) {
        new PrintBanner("a");
    }
}
